package tools

import (
	"github.com/bwmarrin/snowflake"
)

var (
	node *snowflake.Node
)

func init() {
	node, _ = snowflake.NewNode(1)

}
func NextId() int64 {
	return node.Generate().Int64()
}

func NextIdString() string {

	return node.Generate().Base32()
}
